package com.tetra.arena.listeners;


import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;

import com.tetra.arena.core.ArenaSystems;
import com.tetra.arena.mysql.DataSource;




public class ArenaPlayerListener implements Listener {
	ArenaSystems plugin;
	private DataSource database;
	public ArenaPlayerListener(DataSource database, ArenaSystems instance){
		plugin = instance;
		this.database = database;
	}
	
	@EventHandler
	public void PlayerJoinNormal(PlayerLoginEvent event){
		database.AddPlayer(event.getPlayer());
	}
}
